﻿using Portal.Model;
using Portal.Presentation.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Portal.Presentation.Converters
{
    /// <summary>
    /// Interface <see cref="IUserViewModelConverter"/> declare UserViewModel converter
    /// </summary>
    public interface IUserViewModelConverter
    {
        /// <summary>
        /// Converts to IUserInfo.
        /// </summary>
        /// <param name="model">The model.</param>
        /// <param name="user">The user.</param>
        /// <returns>User info.</returns>
        IUserInfo ToUserInfo(UserInfoDataModel model, IUser user);

		/// <summary>
		/// To the view model.
		/// </summary>
		/// <param name="userInfo">The user information.</param>
		/// <returns></returns>
		UserInfoDataModel ToModel(IUserInfo userInfo);
	}
}
